﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Intranet/frmMaestra.Master" AutoEventWireup="true" CodeBehind="frmAbrirEstadia.aspx.cs" Inherits="SisHotel.Intranet.frmAbrirEstadia_" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Estadía</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Abrir Estadía
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-8">
                            <div class="form-group">
                                <asp:TextBox ID="txtDNI" runat="server" class="form-control" Width="100%" placeholder="Documento de identidad"></asp:TextBox>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="form-group">
                                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" class="btn btn-default" OnClick="btnBuscar_Click" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <asp:GridView ID="gvDatos" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="False" OnSelectedIndexChanged="gvDatos_SelectedIndexChanged">
                                <Columns>
                                    <asp:BoundField DataField="IDRESERVA" HeaderText="Código" />
                                    <asp:BoundField DataField="PERSONA.IDPERSONA" HeaderText="Cod. Persona" />
                                    <asp:BoundField DataField="FECHARESERVA" HeaderText="Fecha Reserva" DataFormatString="{0:dd/MM/yyyy}" />
                                    <asp:BoundField DataField="FECHAENTRADA" HeaderText="Fecha Entrada" DataFormatString="{0:dd/MM/yyyy}" />
                                    <asp:BoundField DataField="FECHASALIDA" HeaderText="Fecha Salida" DataFormatString="{0:dd/MM/yyyy}" />
                                    <asp:BoundField DataField="NRONOCHES" HeaderText="Nro Noches" />
                                    <asp:BoundField DataField="MONTOPAGADO" HeaderText="Monto Pagado" DataFormatString="{0:n}" />
                                    <asp:BoundField DataField="SALDO" HeaderText="Saldo" DataFormatString="{0:n}" />
                                    <asp:CommandField SelectText="Abrir Estadía" ShowSelectButton="true" />
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- 
       <asp:ObjectDataSource ID="dsHabitaciones" runat="server" SelectMethod="ListarHabitaciones" TypeName="CapaDatos.datHabitacion"></asp:ObjectDataSource>
    -->
</asp:Content>
